// 导入vue-router
import {createRouter,createMemoryHistory} from 'vue-router'
// 创建路由
const router = createRouter({
  history: createMemoryHistory(),
  routes: [
    {
      path: '/home',

      component: () => import('./views/Home.vue'),
    },
    {
      path: '/about',
      name: 'About',
      component: () => import('./views/About.vue'),
    },
    {
      path: '/user',
      name: 'User',
      component: () => import('./views/User.vue'),
    }
  ]
})